<table border="0" style="width: 100%;font-size: 14pt;">
    <tr >
        <td width="20%"></td>
        <td width="60%"></td>
        <td width="20%"></td>
    </tr>
    <tr >
        <td colspan="3" align="center">            
            <center><h3><?=$title?></h3></center>
            <br>
        </td>
    </tr>
    <tr>
        <td>Nama</td>
        <td>: <?=$nama?></td>
    </tr>
    <tr>
        <td>NIK</td>        
        <td>: <?=$nik?></td>
    </tr>
    <tr>
        <td>PERIODE</td>        
        <td>: <?=$bulan." ".$tahun?><br><br></td>
    </tr>
</table>
<table border="1" style="width: 100%;font-size: 14pt;">
    <tr >
        <td width="20%"></td>
        <td width="60%"></td>
        <td width="20%"></td>
    </tr>
    <tr>
        <td>Gaji Pokok</td>
        <td>&nbsp;</td>
        <td align='right'>Rp. <?=number_format($gaji_pokok, 0)?></td>
    </tr>
    <tr >
        <td>Tunj. Jabatan</td>
        <td>&nbsp;</td>
        <td align='right'>Rp. <?=number_format($tunjangan_jabatan, 0)?></td>
    </tr>
    <tr >
        <td>Tunj. Anak-Istri</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <?php if ($anak_1 > 0 ) {?>
    <tr >
        <td>&nbsp;</td>
        <td >Anak 1 </td>
        <td align='right'>Rp. <?=number_format($anak_1, 0)?></td>
    </tr>
        <?php } ?>
    <?php if ($anak_2 > 0 ) {?>
    <tr >
        <td>&nbsp;</td>
        <td>Anak 2 </td>
        <td align='right'>Rp. <?=number_format($anak_2, 0)?></td>
    </tr>
        <?php } ?>
    <?php if ($anak_3 > 0 ) {?>
    <tr >
        <td>&nbsp;</td>
        <td>Anak 3 </td>
        <td align='right'>Rp. <?=number_format($anak_3, 0)?></td>
    </tr>
        <?php } ?>
    <?php if ($istri_1 > 0 ) {?>
    <tr >
        <td>&nbsp;</td>
        <td>Istri </td>
        <td align='right'>Rp. <?=number_format($istri_1, 0)?></td>
    </tr>
        <?php } ?>
    <tr >
        <td>Tunj. Makan</td>
        <td>&nbsp;</td>
        <td align='right'>Rp. <?=number_format($makan, 0)?></td>
    </tr>
    <tr >
        <td>Tunj. Transportasi</td>
        <td>&nbsp;</td>
        <td align='right'>Rp. <?=number_format($transportasi, 0)?></td>
    </tr>
    <tr >
        <td>Tunj. Kehadiran</td>
        <td>&nbsp;</td>
        <td align='right'>Rp. <?=number_format($kehadiran,0)?></td>
    </tr>
    <tr >
        <td>Lembur</td>
        <td>&nbsp;</td>
        <td align='right'>Rp. <?=number_format($lembur,0)?></td>
    </tr>
    <tr >
        <td>Dinas Luar</td>
        <td>&nbsp;</td>
        <td align='right'>Rp. <?=number_format($dinas,0)?></td>
    </tr>
    <tr >
        <td>Potongan Hutang</td>
        <td>&nbsp;</td>
        <td align='right'>Rp. <?=number_format($hutang,0)?></td>
    </tr>

    <tr >
        <td align="left" colspan="2"><b>Gaji Diterima</b></td>
        <td align='right'><b>Rp. <?=number_format($gaji_total,0)?></b></td>
    </tr>
</table>